package data.nanjing.expo.models.domain.dto.exhibition;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonValueInstantiator;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 上传展馆
 *
 * @author ChanJi
 * @create 2018-05-23 21:37
 **/
public class HallDto {
    private Integer id;
    @NotBlank(message = "展馆名不能为空")
    private String hallName;
    private String hallColor;
    @NotNull(message = "展区信息不能为空")
    @Valid
    private List<AreaDto> area = new ArrayList<>();

    private Integer expoId;
    @JsonIgnore
    private Date createTime;
    @JsonIgnore
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getHallName() {
        return hallName;
    }

    public void setHallName(String hallName) {
        this.hallName = hallName;
    }

    public String getHallColor() {
        return hallColor;
    }

    public void setHallColor(String hallColor) {
        this.hallColor = hallColor;
    }

    public List<AreaDto> getArea() {
        return area;
    }

    public void setArea(List<AreaDto> area) {
        this.area = area;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getExpoId() {
        return expoId;
    }

    public void setExpoId(Integer expoId) {
        this.expoId = expoId;
    }

    @Override
    public String toString() {
        return "HallDto{" +
                "id=" + id +
                ", hallName='" + hallName + '\'' +
                ", hallColor='" + hallColor + '\'' +
                ", area=" + area +
                '}';
    }
}
